package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户好友关系对象 chat_user_friend
 * 
 * @author ruoyi
 * @date 2025-08-30
 */
public class ChatUserFriend extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 好友ID */
    @Excel(name = "好友ID")
    private Long friendId;

    /** 好友备注 */
    @Excel(name = "好友备注")
    private String friendAlias;

    /** 状态（0待确认 1已好友 2已拒绝 3已拉黑） */
    @Excel(name = "状态", readConverterExp = "0=待确认,1=已好友,2=已拒绝,3=已拉黑")
    private String status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setFriendId(Long friendId) 
    {
        this.friendId = friendId;
    }

    public Long getFriendId() 
    {
        return friendId;
    }

    public void setFriendAlias(String friendAlias) 
    {
        this.friendAlias = friendAlias;
    }

    public String getFriendAlias() 
    {
        return friendAlias;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("friendId", getFriendId())
            .append("friendAlias", getFriendAlias())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
